package com.dragon.service;

import com.dragon.pojo.Problem.ProblemList;
import com.dragon.pojo.Training.Training;
import com.dragon.pojo.Training.TrainingInfo;
import com.dragon.pojo.Training.TrainingListResult;
import com.dragon.pojo.Training.TrainingSelectInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TrainingService {
    TrainingListResult getTrainingList(TrainingSelectInfo info);

    Training getTrainingInfo(Integer trainingId, Integer userId);

    List<ProblemList> getTrainingProblemList(Integer trainingId, Integer userId);

    void addTraining(TrainingInfo info);

    void deleteTraining(Integer trainingId);

    void updateTraining(TrainingInfo info);
}
